package com.f5.management.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**I
 * @author author
 * @create 2021 -04 -6 -8:59
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Pet {
    private int id;//自动递增
    private   Member member;//小区成员
    private Community community;//小区
    private String img;//图像url
    private String  petName;//宠物名字
    private String Color;//颜色
    private String desc;//描述
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT"+24)
    private Date  adoption; //收养时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT"+24)
    private Date createTime; //创建时间
    private int status;//状态 0 有效 1 失效


}
